#ifndef _SCREEN_PROTECTION_H_
#define _SCREEN_PROTECTION_H_

#include "sys_port.h"
#include "dev_off.h"
#include "dev_off_line.h"
#include "root.h"

typedef struct 
{
    lv_obj_t * bg;
    lv_obj_t * img_weather;

    lv_obj_t * label_hour;
    lv_obj_t * label_colon;   
    lv_obj_t * label_min;
    lv_obj_t * label_date;
    lv_obj_t * label_tempera; 

    lv_obj_t * img_message;
    lv_obj_t * label_message;

    lv_timer_t * timer_sp_refresh;
}ui_sp_widget_t;

void ui_init_screen_protection_page_src(lv_obj_t *superview);

static void on_page_screen_protection_view_did_load(page_base_t* self);

page_vtable_t* lv_page_screen_protection_create(void);

void timer_sp_refresh_cb(lv_timer_t * timer);

#endif // _SCREEN_PROTECTION_H_
